<template>
  <div>{{ ress }}</div>
</template>

<script>
export default {
    data() {
        return {
            ress:'this is data'
        }
    },
    mounted(){
        this.inss()
    },
    methods: {
        inss(){
            this.$axios({
                method:'POST',
                url:'api/write_comments/',
                data:{
                    art_id:1,
                    art_content:'this is content!',
                    send_obj:'2',
                    user_id:'2',
                }
            }).then(res=>{
                alert(res.data)
                // this.ress = JSON.parse(res.data)
                console.log(res.data)
            })
        }
    },
}
</script>